package com.bianmin.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bianmin.Model.QuantityRecords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface QuantityRecordsMapper extends BaseMapper<QuantityRecords> {

    //查询用户积分变动记录
    @Select("select * from quantity_records where user_id = #{userId} order by id desc limit #{page},#{pageSize}")
    List<QuantityRecords> queryUserRecords(Integer userId, int page, int pageSize);

}
